<template>
  <div>
    <SkuList v-if="isShowSkuList" @setIsShowSkuList="setIsShowSkuList" />
    <SaveSku v-else @setIsShowSkuList="setIsShowSkuList" />
  </div>
</template>

<script>
import SkuList from './components/SkuList.vue'
import SaveSku from '../spu/components/SaveSku.vue'

export default {
  name: 'Sku',
  components: {
    SkuList,
    SaveSku
  },
  data() {
    return {
      isShowSkuList: true
    }
  },
  methods: {
    setIsShowSkuList(isShowSkuList) {
      this.isShowSkuList = isShowSkuList
    }
  }
}
</script>

<style>

</style>
